package edu.hwadee.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Clientbuy entity. @author MyEclipse Persistence Tools
 */

public class Clientbuy implements java.io.Serializable {

	// Fields

	private Integer clientBuyId;
	private Staff staff;
	private Company companyBySaleCompany;
	private Company companyByBuycompany;
	private Date sellDate;
	private Float earn;
	private Float receivedMoney;
	private Short paymentState;
	private Float taxFee;
	private Float saleCommission;
	private Float profit;
	private Short processNode;
	private Set materialsells = new HashSet(0);

	public Clientbuy() {
	}

	public Clientbuy(Staff staff, Company companyBySaleCompany, Company companyByBuycompany, Date sellDate, Float earn,
			Float receivedMoney, Short paymentState, Float taxFee, Float saleCommission, Float profit,
			Short processNode, Set materialsells) {
		this.staff = staff;
		this.companyBySaleCompany = companyBySaleCompany;
		this.companyByBuycompany = companyByBuycompany;
		this.sellDate = sellDate;
		this.earn = earn;
		this.receivedMoney = receivedMoney;
		this.paymentState = paymentState;
		this.taxFee = taxFee;
		this.saleCommission = saleCommission;
		this.profit = profit;
		this.processNode = processNode;
		this.materialsells = materialsells;
	}

	// Property accessors

	public Integer getClientBuyId() {
		return this.clientBuyId;
	}

	public void setClientBuyId(Integer clientBuyId) {
		this.clientBuyId = clientBuyId;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

	public Company getCompanyBySaleCompany() {
		return this.companyBySaleCompany;
	}

	public void setCompanyBySaleCompany(Company companyBySaleCompany) {
		this.companyBySaleCompany = companyBySaleCompany;
	}

	public Company getCompanyByBuycompany() {
		return this.companyByBuycompany;
	}

	public void setCompanyByBuycompany(Company companyByBuycompany) {
		this.companyByBuycompany = companyByBuycompany;
	}

	public Date getSellDate() {
		return this.sellDate;
	}

	public void setSellDate(Date sellDate) {
		this.sellDate = sellDate;
	}

	public Float getEarn() {
		return this.earn;
	}

	public void setEarn(Float earn) {
		this.earn = earn;
	}

	public Float getReceivedMoney() {
		return this.receivedMoney;
	}

	public void setReceivedMoney(Float receivedMoney) {
		this.receivedMoney = receivedMoney;
	}

	public Short getPaymentState() {
		return this.paymentState;
	}

	public void setPaymentState(Short paymentState) {
		this.paymentState = paymentState;
	}

	public Float getTaxFee() {
		return this.taxFee;
	}

	public void setTaxFee(Float taxFee) {
		this.taxFee = taxFee;
	}

	public Float getSaleCommission() {
		return this.saleCommission;
	}

	public void setSaleCommission(Float saleCommission) {
		this.saleCommission = saleCommission;
	}

	public Float getProfit() {
		return this.profit;
	}

	public void setProfit(Float profit) {
		this.profit = profit;
	}

	public Short getProcessNode() {
		return this.processNode;
	}

	public void setProcessNode(Short processNode) {
		this.processNode = processNode;
	}

	public Set getMaterialsells() {
		return this.materialsells;
	}

	public void setMaterialsells(Set materialsells) {
		this.materialsells = materialsells;
	}

}